package com.econ.powercloud.ems.util;

/**
 * @Author : zjf
 * @Description : 计算数据缓存常量
 * @Date : 2022/3/22 14:17
 * @Modified by : zjf
 */
public class CalculationKeyUtils {

    private CalculationKeyUtils() {
    }

    public static final String PREFIX = "iot-platform:";

    /**
     * 计算数据缓存为： ext-iot-scene:cal-data:${productCode}
     */
    private static final String DEVICE_DATA_KEY = PREFIX + "cal-data:%s";

    /**
     * 获取到计算数据key
     * @param deviceCode
     * @return
     */
    public static String getDeviceDataKey(String deviceCode) {
        return String.format(DEVICE_DATA_KEY, deviceCode);
    }
}
